* {
	/* =======全局过度动画 */
	transition: .3s;
	/* Firefox 4 */
	-moz-transition: .3s;
	/* Safari and Chrome */
	-webkit-transition: .3s;
	/* Opera */
	-o-transition: .3s;
	/* =================== */
}

body {
	background-color: #F7F8F9;
	margin: 0px;
}

@font-face {
	font-family: "等宽字体";
	src: url(/font/SourceCodePro-Medium-10.ttf);
}

/* 容器，居中适应手机和电脑 */
.milkbox-container-center {
	margin: 0px auto;
	width: 100%;
	max-width: 800px;
}

/* 文字超出对象后省略并添加... */
.milkbox-text-overflow-hidden {
	/* 添加... */
	text-overflow: ellipsis;
	/* 超出隐藏 */
	overflow: hidden;
}

/* 单行代码格式 */
.milkbox-code-line {
	font-family: "等宽字体";
	background-color: white;
	border: 1px solid #bebebe;
	padding: 2px 4px;
}

/* 带动画的动态单行代码样式 */
.milkbox-code-line-dynamic {
	transition: .1s;
	-moz-transition: .1s;
	-webkit-transition: .1s;
	-o-transition: .1s;
	/* margin上下边距在p标签中失效 */
	margin: 4px 6px;
	padding: 2px 4px;
}

.milkbox-code-line-dynamic:hover {
	margin: 0px 0px;
	padding: 6px 10px;
	z-index: 50;
	color: white;
	background-color: #6E35AE;
	border-color: #6E35AE;
	border-radius: 5px;
}

/* 阴影右下角，这个是静态的 */
.milkbox-shadow-bottom-right {
	-webkit-box-shadow: 2px 2px 4px 1px rgb(0 0 0 / 20%);
}

/* TODO 这个的名字应该叫.milkbox-shadow-bottom-right */
/* 这一个应该逐渐弃用 */
.milkbox-shadow-button-right {
	-webkit-box-shadow: 2px 2px 4px 1px rgb(0 0 0 / 20%);
}

/* 动态阴影 */
.milkbox-dynamic-shadows {
	margin: 10px;
	padding: 16px;
	background-color: #FEFEFEE5;
	backdrop-filter: blur(3px) brightness(100%);
	border-radius: 10px;
	-webkit-box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 10%);
	transition: .1s;
	-moz-transition: .1s;
	-webkit-transition: .1s;
	-o-transition: .1s;
}

.milkbox-dynamic-shadows:hover {
	background-color: #FEFEFE;
	-webkit-box-shadow: 6px 6px 4px 0px rgb(0 0 0 / 20%);
	margin-left: 7px;
	margin-right: 13px;
	margin-top: 7px;
	margin-bottom: 13px;
}

/* 清晰阴影粗边框，适用于父元素花里胡哨的时候 */
.border-clear {
	border: 5px #FFFFFF solid;
	border-radius: 4px;
	-webkit-box-shadow: 0px 0px 6px 3px rgb(0 0 0 / 60%);
}

/* 圆形边框 */
.border-circel {
	border-radius: 100%;
}

/* 圆角紫色边框 */
.border-rounded-purple {
	border: 1px solid #6E35AE;
	border-radius: 4px;
}

.border-rounded-purple:hover {
	border: 1px solid #5d10b6;
}

/* 横向flex布局 */
.x-box {
	display: flex;
	justify-content: center;
}

/* 纵向flex布局 */
.y-box {
	display: flex;
	justify-content: center;
	flex-direction: column;
}

/* 水平垂直居中 */
.center-all {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 一键置顶 */
.z-index-top {
	z-index: 9999;
}

/* 覆盖变小手 */
.pointer {
	cursor: pointer;
}

/* 一键禁用 */
.milkbox-disabled {
	/* 禁用对象的所有事件 */
	pointer-events: none;
	/* 鼠标变成禁用样式，但是不起作用 */
	cursor: not-allowed;
	opacity: 0.6;
}

/* 新版的按钮样式 */
/* 
<div class="y-box">
	<div class="milkbox-button">按钮文字</div>
</div>
*/
.milkbox-button {
	transition: .2s;
	-moz-transition: .2s;
	-webkit-transition: .2s;
	-o-transition: .2s;

	text-align: center;
	margin: 6px 30px;
	padding: 2px 10px;
	width: 150px;
	border: 1px solid #6E35AE;
	color: #6E35AE;
	border-radius: 6px;
	cursor: pointer;
}

.milkbox-button:hover {
	margin: 3px 10px;
	padding: 5px 30px;
	background-color: #6E35AE;
	color: white;
}

.milkbox-button-danger {
	border-color: #df4718;
	color: #df4718;
}

.milkbox-button-danger:hover {
	background-color: #df4718;
	color: white;
}

.milkbox-button-info {
	border-color: #767a0f;
	color: #767a0f;
}

.milkbox-button-info:hover {
	background-color: #767a0f;
	color: white;
}

/* 提醒框样式 */
.milkbox-readme {
	padding: 8px 16px;
	background-color: #e8daf6;
	border-radius: 4px;
	border-left: 5px solid #6E35AE;
	margin: 20px 10px;
}

/* 这个按钮样式尽量不要使用了 */
/* 排列在一起的选项按钮样式 */
.option-button {
	transition: .2s;
	/* Firefox 4 */
	-moz-transition: .2s;
	/* Safari and Chrome */
	-webkit-transition: .2s;
	/* Opera */
	-o-transition: .2s;

	display: flex;
	justify-content: center;
	margin: 6px 20px;
	padding: 2px 10px;
	width: 200px;
	border: 1px solid #6E35AE;
	color: #6E35AE;
	border-radius: 6px;
	cursor: pointer;
}

.option-button:hover {
	margin: 3px 20px;
	padding: 5px 10px;
	width: 80%;

	background-color: #6E35AE;
	color: white;
}

.option-button-danger {
	border-color: #df4718;
	color: #df4718;
}

.option-button-danger:hover {
	background-color: #df4718;
	color: white;
}

/* 横向确定和取消按钮 */
/* 
<div class="milkbox-confirm-cancel-buttons">
	<div class="option-button" @click="sendSource('sourceForm')">确定</div>
	<div class="option-button option-button-danger" @click="resetForm('sourceForm')">清除
	</div>
</div>
*/
.milkbox-confirm-cancel-buttons {
	width: 360px;
	display: flex;
	justify-content: center;
	margin: 0px auto;
}

/* 按钮前面的小图标样式 */
.option-button .icon {
	width: 30px;
	object-fit: cover;
	margin: 0px 4px;
}

/* 按钮文字样式 */
.option-button .text {
	font-size: 22px;
}

/* 列表按钮样式 */
/*
<div class="option-list">
	<div class="option-item x-box pointer">
		<div class="y-box">
			<img class="icon" src="/img/buttonIcon/首页.png" />
		</div>
		<div class="text y-box">我的首页</div>
	</div>
	<div class="option-item x-box pointer">
		<div class="y-box">
			<img class="icon" src="/img/buttonIcon/首页.png" />
		</div>
		<div class="text y-box">我的首页</div>
	</div>
	<div class="option-item x-box pointer">
		<div class="y-box">
			<img class="icon" src="/img/buttonIcon/首页.png" />
		</div>
		<div class="text y-box">我的首页</div>
	</div>
</div>
*/
.option-list {
	border-left: 1px solid #bebebe;
	border-right: 1px solid #bebebe;
	border-top: 1px solid #bebebe;
}

.option-list .option-item {
	height: 50px;
	border-bottom: 1px solid #bebebe;
	color: #6E35AE;
	font-weight: bold;
}

.option-list .option-item:hover {
	background-color: #6E35AE;
	color: white;
	height: 66px;
}

.option-list .option-item .icon {
	width: 30px;
	height: 30px;
	margin-right: 6px;
}

.option-list .option-item .text {
	font-size: 18px;
}

/* 文件上传工具样式 **********************************************************************************************/
/* 选择图片后会回显在上传按钮上
<div class="milkbox-upload-div" :style="{'background-image': 'url(' + previewImageUrl + ')'}">
	<input id="upload-input" class="upload-input" type="file" accept="image/*" @change="inputChange" />
	<label for="upload-input" class="center-all pointer">
		<img src="img/添加图片.png" v-if="previewImageUrl == ''" />
		<div class="upload-description" v-if="previewImageUrl == ''">点击选择图片</div>
	</label>
</div>
*/
/* 选择图片后不会回显在上传按钮上
<div class="milkbox-upload-div">
	<input id="upload-input" class="upload-input" type="file" accept="image/*" @change="inputChange" />
	<label for="upload-input" class="center-all pointer">
		<img src="img/添加图片.png" />
		<div class="upload-description">点击选择图片</div>
	</label>
</div>
*/
.milkbox-upload-div {
	border: 1px dashed #6E35AE;
	border-radius: 6px;
	width: 200px;
	height: 200px;
	overflow: hidden;
	text-align: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	transition: .2s;
	-moz-transition: .2s;
	-webkit-transition: .2s;
	-o-transition: .2s;

	margin: 10px;
	padding: 0px;
}

.milkbox-upload-div:hover {
	margin: 2px;
	padding: 8px;
}

.milkbox-upload-div label {
	width: 100%;
	height: 100%;
	flex-direction: column;
}

.milkbox-upload-div img {
	width: 64px;
	height: 64px;
}

.milkbox-upload-div .upload-description {
	color: #6E35AE;
	font-weight: bold;
}

.milkbox-upload-div .upload-persent {
	color: #6E35AE;
	font-size: 14px;
}

/* 文件选择inputFile，下面这一坨的意思就是把原来的很丑的文件选择样式给隐藏 */
.milkbox-upload-div .upload-input {
	/* 隐藏原来的inputFile */
	position: absolute !important;
	height: 1px;
	width: 1px;
	/* 超出隐藏 */
	overflow: hidden;
	/* 剪裁，意思就是把原来的inputFile给隐藏 */
	clip: rect(1px, 1px, 1px, 1px);
}

.milkbox-upload-div .upload-input:focus+label {
	outline: thin dotted;
}

.milkbox-upload-div .upload-input:focus-within+label {
	outline: thin dotted;
}

/* 文件上传工具样式结束 *************************************************************************************/

/* 帖子样式 */
.post-item {
	padding: 10px;
}

.post-title {
	justify-content: left;
	margin-top: 4px;
	margin-bottom: 8px;
}

.post-title .post-user-avatar {
	border-radius: 100%;
	width: 50px;
	height: 50px;
	object-fit: cover;
}

.post-title .post-title-left {
	padding-left: 10px;
}

.post-title .post-title-left .post-user-nickname {
	color: #6E35AE;
	font-weight: bold;
}

.post-content {
	white-space: pre-wrap;
	font-size: 18px;
	color: #222222;
}

.post-iamge-list {
	/* 让flex换行 */
	flex-wrap: wrap;
}

.post-iamge-list img {
	/* width: 200px;
    height: 200px; */
	object-fit: cover;
	margin: 4px;
}

.post-loding {
	margin-top: 20px;
	margin-bottom: 10px;
	text-align: center;
	font-size: 20px;
	color: #6E35AE
}

.post-loding i {
	font-size: 26px;
	font-weight: bold;
}

.post-tools {
	justify-content: space-between;
	margin-top: 10px;
}

.post-tools .post-view {
	font-size: 14px;
	color: #6E35AE;
}

.post-tools .post-tools-image {
	justify-content: space-evenly;
	width: 150px;
}

.post-tools .post-tools-image img {
	width: 30px;
	height: 30px;
}

/* 帖子样式结束 **********************************************************************************/